export const cardInfoValidation = {
  title: [
    { required: true, message: '请填写房屋标题', trigger: 'blur' },
    { min: 1, max: 50, message: '限制长度为1-50个字符' }
  ],
  sideTitle: [
    { required: true, message: '请填写房屋副标题', trigger: 'blur' },
  ],
  roomLocation: [
    { required: true, message: '请填写单元房号', trigger: 'blur' },
  ],
  area: [
    { required: true, message: '请填写房屋面积', trigger: 'blur' },
    { pattern: /^[0-9|^\\.]/, message: '数值不能为负数' }
  ],
  floor:[
    { required: true, message: '请填写楼层', trigger: 'blur' },
  ],
  status: [
    { required: true, message: '请选择状态', trigger: 'blur' },
  ],
  contactPerson: [
    { required: true, message: '请填写联系人', trigger: 'blur' },
  ],
  contactPhone: [
    { required: true, message: '请填写联系人手机号', trigger: 'blur' },
    { pattern: /^1[3-9]\d{9}$/, message: '请输入正确的手机号码', trigger: 'blur' }
  ],
  attrIds: [
    { required: true, message: '请选择属性', trigger: 'blur' },
  ],
  landmarkIds: [
    { required: true, message: '请选择地标', trigger: 'blur' },
  ],
  sourceId: [
    { required: true, message: '请选择来源', trigger: 'blur' },
  ],
  facilityIds: [
    { required: true, message: '请选择基础设施', trigger: 'blur' },
  ],
  typeId: [
    { required: true, message: '请选择房源类型', trigger: 'blur' },
  ],
  securityPrice: [
    { required: true, message: '请填写看房押金', trigger: 'blur' },
  ],
  depositPrice: [
    { required: true, message: '请填写定金', trigger: 'blur' },
  ],
  quarterId: [
    { required: true, message: '请选择小区', trigger: 'blur' },
  ],
  rentStatus: [
    { required: true, message: '请选择出租状态', trigger: 'blur' },
  ],
  isRecommend: [
    { required: true, message: '请选择是否推荐', trigger: 'blur' },
  ],
  selfView: [
    { required: true, message: '请选择是否自行看房', trigger: 'blur' },
  ],
  logo: [
    { required: true, message: '请选择标题图', trigger: 'blur' },
  ],
  address: [
    { required: true, message: '请填写地址', trigger: 'blur' },
  ],
  details: [
    { required: true, message: '请填写房屋详情', trigger: 'blur' },
  ],
  customerAgencyPrice: [
    { required: true, message: '请填写租客中介费', trigger: 'blur' },
    { pattern: /^[0-9|^\\.]/, message: '数值不能为负数' }
  ],
  landlordAgencyPrice: [
    { required: true, message: '请填写房东中介费', trigger: 'blur' },
    { pattern: /^[0-9|^\\.]/, message: '数值不能为负数' }
  ],
  num: [
    { required: true, message: '请填写起租月数', trigger: 'blur' },
    { pattern: /^[0-9|^\\.]/, message: '数值不能为负数' }
  ],
  rentDepositPrice: [
    { required: true, message: '请填写押金', trigger: 'blur' },
    { pattern: /^[0-9|^\\.]/, message: '数值不能为负数' }
  ],
  rentPrice: [
    { required: true, message: '请填写月租金', trigger: 'blur' },
    { pattern: /^[0-9|^\\.]/, message: '数值不能为负数' }
  ],
  devicePassword: [
    { required: true, message: '请填写设备密码', trigger: 'blur' },
  ]
}
